package com.znsd.study.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.znsd.entitys.CurriculumInfo;

public interface CurriculumService {
	public List<CurriculumInfo> currList(String cid);
	public long addCurr(CurriculumInfo curr);
	//全部的上传的记录
	public List<CurriculumInfo> getListCurr(Integer pag,Integer row);
	//查询数量
	public long currCount();
	
	//个人上传记录
	public List<CurriculumInfo> getSingleListCurr(Integer user_id,@Param("page")Integer page,@Param("rows")Integer rows);
	
	//个人查询数量
	public long currSingCount(Integer user_id);
	
	//删除教程的方法
	public long delCurr(Integer id);
	
	//还原教程的方法
	public long huanCurr(Integer id);
	
	//查询的个人的记录
	public List<CurriculumInfo> getSingleCurrSou(@Param("grsou")String grsou,@Param("user_id")Integer user_id,@Param("page")Integer page,@Param("rows")Integer rows);
	
	//查询的全部上传的个数
	public long souCurrCount(@Param("sou")String sou);
	
	//通过查询的全部的上传记录
	public List<CurriculumInfo> souListCurr(@Param("sou")String sou,@Param("page")Integer page,@Param("rows")Integer rows);
	
	
	
	//查询的个人的记录的数量
	public long currSingCountSou(@Param("grsou")String grsou,@Param("user_id")Integer user_id);
}
